package com.fh.fruit.service.areagooddetail.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.fh.dao.DaoSupport;
import com.fh.fruit.entity.areagooddetail.AreaGoodDetail;
import com.fh.fruit.service.areagooddetail.AreaGoodDetailManager;
import com.fh.util.PageData;

/**
 * 区域商品详情Service
 * 
 * @author Administrator
 * @version 2017.11.30 15:39
 */
@Service("areaGoodDetailService")
public class AreaGoodDetailService implements AreaGoodDetailManager {
	@Resource(name = "daoSupport")
	private DaoSupport dao;

	@Override
	public int saveAreaGoodDetails(AreaGoodDetail pd) throws Exception {
		return (int) dao.save("AreaGoodDetailMapper.insertGoodDetils", pd);
	}
	@Override
	public Integer selectMaxSeq(PageData pd) throws Exception {
		return (Integer) dao.findForObject("AreaGoodDetailMapper.selectSeq", pd);
	}
	@Override
	public int selectTotalGoods(PageData pd) throws Exception {
		return (int) dao.findForObject("AreaGoodDetailMapper.selectTotalGoods", pd);
	}
}
